package com.dgshanger.sanhxiaofeisc.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.dgshanger.sanhxiaofeisc.R
import com.dgshanger.sanhxiaofeisc.entity.SearchHotEntity

/**
 * Created by JacobHHH on 2018/5/3.
 */
class SearchHotAdapter(layoutResId : Int, data : List<SearchHotEntity>) : BaseQuickAdapter<SearchHotEntity,BaseViewHolder>(layoutResId,data) {

    override fun convert(helper: BaseViewHolder?, item: SearchHotEntity?) {
        helper!!.setText(R.id.tv_hot, item!!.hot_word)
    }
}